package com.juyu.miliao.common.constant;

import java.time.LocalDate;

/**
 * 暑期活动之游戏人间redisKey
 * @Auther: 卜加超
 * @Date: 2019/8/6 16:13
 * @Description:
 */
public class BillBeansGameKey {
    private static final String SAN_GUO_GAME_WIN_BEANS_KEY = "SAN_GUO_GAME_WIN_BEANS:";

    private static final String IS_GIVE_BEANS_KEY ="IS_GIVE_BEANS:";
    private static final String SAN_GUO_ACTIVITIES_STATISTICS_GET_REWARDS_KEY
            ="SAN_GUO_ACTIVITIES_STATISTICS_GET_REWARDS_KEY:";
    /**
     * 获取今日盈利总数的key
     * @param localDate
     * @param userId
     * @return
     */
    public static String getSanGuoGameWinBeansKey(LocalDate localDate,Long userId){
        return SAN_GUO_GAME_WIN_BEANS_KEY+localDate.toString()+":"+ userId;
    }

    /**
     * 获取用户是否领取奖励
     * @param localDate
     * @param sanGuoActiveId
     * @return
     */
    public static String getIsGiveBeansKey(LocalDate localDate,Integer sanGuoActiveId){
        return IS_GIVE_BEANS_KEY+localDate.toString()+":"+sanGuoActiveId;
    }

    /**
     * 统计用户领取三国奖励
     * @param localDate
     * @param sanGuoActiveId
     * @return
     */
    public static String getSanGuoActivitiesStatisticsGetRewardsKey(LocalDate localDate,Integer sanGuoActiveId){
        return SAN_GUO_ACTIVITIES_STATISTICS_GET_REWARDS_KEY+localDate.toString()+":"+sanGuoActiveId;
    }
}
